package com.lingx.web.api.impl;

import java.util.Map;

import javax.annotation.Resource;

import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Component;

import com.lingx.web.api.IApi;
@Component
public class Api9009 extends AbstractDevApi implements IApi{
	@Resource
	private JdbcTemplate jdbcTemplate;
	@Override
	public int getApiCode() {
		return 9009;
	}
	@Override
	public String getApiName() {
		return "获取可引用模型列表";
	}
	@Override
	public Map<String, Object> api(Map<String, Object> param) {
		Map<String,Object> ret=IApi.getRetMap(1, "操作成功");
		ret.put("data", this.jdbcTemplate.queryForList("select id,code,name from tlingx_entity where status='1' and is_ref='1' order by create_time desc"));
		return ret;
	}

}
